Groovy Coding Conventions

Opening Class Comments

 

Changes To Existing Code Comments

If updating or making any change (such as making functional changes or upgrading for compatibility) comments should be added so that the various authors can be seen and the reasoning understood:

//dickspa: 01/07/2013: Added in response to CSDV-1147

if (StringUtils.isNotBlank(handlingUnitNbr)){

xmlresponse.append(composeXMLMessageLine("HU_NUMBER", handlingUnitNbr));

}

else {

log("Failed to identify the HU_NUMBER parameter.Not included in outgoing message.");

}

 

During Implementation

It is considered best practice to write Groovy as if the program was being written in Java. This means following standards such as:

 

Deployment

Always add a Code Extension to N4 at GLOBAL scope. Adding at any other scope level can lead to issues in a clustered production environment.